package com.danciyixue.boot.dcyx.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.*;

/**
 * 用户学习记录表单对象
 *
 * @author youlaitech
 * @since 2025-06-15 17:26
 */
@Getter
@Setter
@Schema(description = "用户学习记录表单对象")
public class UserStudyRecordsForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "学习记录ID")
    private Long id;

    @Schema(description = "学生ID")
    @NotNull(message = "学生ID不能为空")
    private Long userId;

    @Schema(description = "系列ID")
    private Long seriesId;

    @Schema(description = "教材ID")
    private Long programId;

    @Schema(description = "单词ID")
    @NotNull(message = "单词ID不能为空")
    private Long wordId;

    @Schema(description = "所属单元ID")
    private Long unitId;

    @Schema(description = "单元名")
    @NotBlank(message = "单元名不能为空")
    @Size(max=128, message="单元名长度不能超过128个字符")
    private String unitName;

    @Schema(description = "状态")
    @NotNull(message = "状态不能为空")
    private Integer status;

    @Schema(description = "来源")
    @NotBlank(message = "来源不能为空")
    @Size(max=64, message="来源长度不能超过64个字符")
    private String source;

    @Schema(description = "学习ID")
    private Long studyId;

    @Schema(description = "来源字段")
    @NotBlank(message = "来源字段不能为空")
    @Size(max=64, message="来源字段长度不能超过64个字符")
    private String sourceFrom;

    @Schema(description = "拼写类型")
    private Integer spellType;

    @Schema(description = "是否测试单词")
    private Integer isTestWord;

    @Schema(description = "创建者")
    private Long createUser;

    @Schema(description = "更新者")
    private Long updateUser;


}
